com.highdeal.pnr.hci
Class ActivateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.highdeal.hci.OperationFailureException
              extended by com.highdeal.pnr.hci.ActivateException
All Implemented Interfaces:
OperationResult, XMLMarshallable, java.io.Serializable

public class ActivateException
extends OperationFailureException

Exception thrown when the activation operation is requested with invalid arguments.

See the available operations depending on the technical interface implemented in your SAP system landscape.

HCI:

Message TCP: Online Charging Services

See Also:
ChargingContractActivateOp, ActivateAllOp, StatefulServiceClient, AsyncStatefulServiceClient, ActivateEventListener, Serialized Form

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="activateFault">
   <xs:complexType>
     <xs:attribute name="reason" type="ActivateFaultReasonType"/>
     <xs:attribute name="message" type="xs:string"/>
    </xs:complexType>
  </xs:element>

  <xs:simpleType name="ActivateFaultReasonType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="invalidSubscriberAccountCode"/>
      <xs:enumeration value="invalidServiceProvider"/>
      <xs:enumeration value="invalidSubscriptionOid"/>
      <xs:enumeration value="invalidToDate"/>
      <xs:enumeration value="invalidResultType"/>
      <xs:enumeration value="activationProcessAlreadyRunning"/>
      <xs:enumeration value="notAuthorized"/>
      <xs:enumeration value="invalidContext"/>
      <xs:enumeration value="locked"/>
      <xs:enumeration value="dispatcherCommunicationFailed"/>
      <xs:enumeration value="reratingSessionRunning"/>
      <xs:enumeration value="invalidChargingContractOid"/>
      <xs:enumeration value="unknown"/>
      </xs:restriction>
   </xs:simpleType>


Field Summary
static int ACTIVATION_PROCESS_ALREADY_RUNNING
          Constant for activationProcesssAlreadyRunning error.
static int DISPATCHER_COMMUNICATION_FAILED
          Constant for dispatcherCommunicationFailed error.
static int INVALID_CHARGING_CONTRACT_OID
          11: Constant for invalidChargingContractOid error.
static int INVALID_CONTEXT
          Constant for invalidContext error.
static int INVALID_RESULT_TYPE
          Constant for invalidResultType error.
static int INVALID_SERVICE_PROVIDER
          Constant for invalidServiceProvider error.
static int INVALID_SUBSCRIBER_ACCOUNT_CODE
          0: Constant for invalidSubscriberAccountCode error.
static int INVALID_SUBSCRIPTION_OID
          Constant for invalidSubscriptionOid error.
static int INVALID_TO_DATE
          Constant for invalidToDate error.
static int LOCKED
          Constant for locked error.
static int NOT_AUTHORIZED
          Constant for notAuthorized error.
static java.lang.String OPERATION_NAME
          The XML tag name of this exception: "activateFault"
static int RERATING_SESSION_RUNNING
          10: Constant for reratingSessionRunning error.
static int UNKNOWN
          -1: Constant for unknown error.
 
Constructor Summary
ActivateException()
          Constructs an empty exception.
ActivateException(int reason, java.lang.String message)
          Constructs an exception with a message.
 
Method Summary
 void addCharacterData(java.lang.String cData)
          Adds character data to the content element.
 void addChild(java.lang.String tagName, XMLMarshallable child)
          Adds a child to the object, the child representing the marshallable object which must be added to the element.
 java.lang.String getMessage()
          Gets the message for this ActivateException.
 int getReason()
          Gets the reason of this ActivateException.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setAttributes(XMLAttributes atts)
          Sets the attributes of the XML representation of the element being processed.
 
Methods inherited from class com.highdeal.hci.OperationFailureException
getOperandReference
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPERATION_NAME

public static final java.lang.String OPERATION_NAME
The XML tag name of this exception: "activateFault"

See Also:
Constant Field Values

INVALID_SUBSCRIBER_ACCOUNT_CODE

public static final int INVALID_SUBSCRIBER_ACCOUNT_CODE
0: Constant for invalidSubscriberAccountCode error.

See Also:
Constant Field Values

INVALID_SERVICE_PROVIDER

public static final int INVALID_SERVICE_PROVIDER
Constant for invalidServiceProvider error.

See Also:
Constant Field Values

INVALID_SUBSCRIPTION_OID

public static final int INVALID_SUBSCRIPTION_OID
Constant for invalidSubscriptionOid error.

See Also:
Constant Field Values

INVALID_TO_DATE

public static final int INVALID_TO_DATE
Constant for invalidToDate error.

See Also:
Constant Field Values

INVALID_RESULT_TYPE

public static final int INVALID_RESULT_TYPE
Constant for invalidResultType error.

See Also:
Constant Field Values

ACTIVATION_PROCESS_ALREADY_RUNNING

public static final int ACTIVATION_PROCESS_ALREADY_RUNNING
Constant for activationProcesssAlreadyRunning error. An activation process is still running.

See Also:
Constant Field Values

NOT_AUTHORIZED

public static final int NOT_AUTHORIZED
Constant for notAuthorized error.

See Also:
Constant Field Values

INVALID_CONTEXT

public static final int INVALID_CONTEXT
Constant for invalidContext error.

See Also:
Constant Field Values

LOCKED

public static final int LOCKED
Constant for locked error.

See Also:
Constant Field Values

DISPATCHER_COMMUNICATION_FAILED

public static final int DISPATCHER_COMMUNICATION_FAILED
Constant for dispatcherCommunicationFailed error.

See Also:
Constant Field Values

RERATING_SESSION_RUNNING

public static final int RERATING_SESSION_RUNNING
10: Constant for reratingSessionRunning error.

See Also:
Constant Field Values

INVALID_CHARGING_CONTRACT_OID

public static final int INVALID_CHARGING_CONTRACT_OID
11: Constant for invalidChargingContractOid error.

See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
-1: Constant for unknown error.

See Also:
Constant Field Values
Constructor Detail

ActivateException

public ActivateException()
Constructs an empty exception.


ActivateException

public ActivateException(int reason,
                         java.lang.String message)
Constructs an exception with a message. It contains a human readable text.

Parameters:
reason - The reason
message - The message
See Also:
INVALID_SUBSCRIBER_ACCOUNT_CODE, INVALID_SERVICE_PROVIDER, INVALID_SUBSCRIPTION_OID, INVALID_TO_DATE, INVALID_RESULT_TYPE, ACTIVATION_PROCESS_ALREADY_RUNNING, NOT_AUTHORIZED, INVALID_CONTEXT, LOCKED, DISPATCHER_COMMUNICATION_FAILED, RERATING_SESSION_RUNNING, INVALID_CHARGING_CONTRACT_OID, UNKNOWN
Method Detail

getReason

public int getReason()
Gets the reason of this ActivateException.

Returns:
The reason of this exception
See Also:
INVALID_SUBSCRIBER_ACCOUNT_CODE, INVALID_SERVICE_PROVIDER, INVALID_SUBSCRIPTION_OID, INVALID_TO_DATE, INVALID_RESULT_TYPE, ACTIVATION_PROCESS_ALREADY_RUNNING, NOT_AUTHORIZED, INVALID_CONTEXT, LOCKED, DISPATCHER_COMMUNICATION_FAILED, RERATING_SESSION_RUNNING, INVALID_CHARGING_CONTRACT_OID, UNKNOWN

getMessage

public java.lang.String getMessage()
Gets the message for this ActivateException.

Overrides:
getMessage in class java.lang.Throwable
Returns:
The message of this ActivateException

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Parameters:
atts - The XML attributes of the current element

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Parameters:
cData - The character data to be added

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Parameters:
tagName - The name of tag for the child
child - The child to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Parameters:
output - The XML output to marshal the object into

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)